﻿using MediatR;
using RBAC.Domain;
using RBAC.Domain.Service.Interfae;
using RBACDuYaJun.Api.Appliction.Command.UserRoleCommand;

namespace RBACDuYaJun.Api.Appliction.CommandHandlers.UserRoleHanders
{
    //public class UserRoleCreateCommandHandler : IRequestHandler<UserRoleCreateCommand, int>
    //{
    //    private readonly IUserRoleService _userRoleService;
    //    public UserRoleCreateCommandHandler(IUserRoleService userRoleService)
    //    {
    //        _userRoleService = userRoleService;
    //    }

    //    //public async  Task<int> Handle(UserRoleCreateCommand request, CancellationToken cancellationToken)
    //    //{
    //    //    return await _userRoleService.AddUserRoles(new UserRole() { userInfoId = request.userInfoId, roleId = request.roleId });
    //    //}
    //}
}
